A>I am the simplest dynamic dialog ever made with FileMaker Pro.
SecondV
ThirdW
FourthX
FifthY
FirstZ
Second[
Third\
Fourth]
Fifth^
guestb
guestc
Usernamej
Passwordk
Remember passwordl9Please enter your username and password to see the magic:m&Message|c:Red&c:Green&c:Blue|OK&Cancelo
, t$Red
Green
Magenta
Yelloww
CREDIT_CARD
Welcome
Version
Showing a dialog 1
Register
Showing a dialog 2
Showing a dialog 3
Showing a dialog 4
Showing a dialog 5
Getting information
Showing a dialog 6
Showing a dialog 7
ing a dialog 7
WelcomeB
dlogButton4B
dlogButton5B
dlogField1B
dlogField2B
dlogField3B
dlogField4B
dlogField5B
A dlogType2B
A dlogType3B
dlogValue1B
dlogValue2B
dlogValue3B
vlstFieldTypeB
vlstTypeDescB
vlstCheckStateB
vlstStateDesc
vlstStateDesc
DescB
= "0"
"No error"
= "-1"
"Missing symbol"
= "-2"
"Unexpected end of definition"
= "-50"
"Internal parameter error"
= "-108"
"Not enough memory"
= "-1700"
"Definition syntax error"
"Unknown error")
No error
Missing symbol
Unexpected end of definition
Internal parameter error
Not enough memory
-1700
Definition syntax error
Unknown error
)A dlogName1B
*A dlogName2B
+A dlogName3B
dlogMessageB
dlogExpertB
dlogErrorMsgB
/A textIndexB
textDelimiterB
textEnteredB
|("24uD-TextEntered"
24uD-TextEntered
textEnteredAllB
|("24uD-AllTextEntered"
24uD-AllTextEntered
buttonPressedB
|("24uD-ButtonPressed"
24uD-ButtonPressed
4A dlogPopupB
vlstFormatTypeB
vlstFormatDescB
dlogFieldFormatB
glogWithValidationB
"Please enter " &
"anything"
"your " &
6) - 2)) &
":|t::{" &
7 & "}" &
7 & "}" &
VersionB
"Welcome to the 24U SimpleDialog Plug-In tutorial!
This tutorial will teach you how to use the functions provided by 24U SimpleDialog Plug-In to display standard types of dialogs, as well as completely custom ones.
This version of 24U SimpleDialog Plug-In offers the following 6 functions:
AP24uD-Version returns version of the 24U SimpleDialog Plug-In currently installed
AE24uD-ShowDialog displays a modal dialog based on the second parameter
AN24uD-ButtonPressed returns the number of the button clicked in the last dialog
AW24uD-TextEntered returns the value of the dialog item specified by the second parameter
AV24uD-AllTextEntered returns the values of all items, separated by the second parameter
AR24uD-Register allows you to enter registration code to turn off shareware reminder
To learn about how these functions let you display dialogs of your own, please click on the Next button, which will bring you to the step-by-step instructions.L
NextM.Copyright
2001-2002 24U. All rights reserved.
Showing a dialog 1B
SimpleDialog Plug-In <<
ABAB>>
NChecking current version of 24U SimpleDialog Plug-In
This function returns either short or long version string of the plug-in currently installed. To get the short version string, provide an empty string as a second parameter. To get the long version string, you can use anything else, however we recommend you use the
string.
You can (and should) use this function to check if your solution is really using the version of 24U SimpleDialog Plug-In which you used to build it.L
NextP
paramS
External("24uD-Version", param)T
PreviousU
RegisterB
SimpleDialog Plug-In <<
ABAB>>
SimpleDialog Plug-In <<
ABAB>>
Displaying a dialog - part 1 - just a text message
The best thing on the 24U SimpleDialog Plug-In is that using it is as simple as the dialogs you want to show....
KNTo display a dialog with the prompt entered above, use the following function:L
NextP
promptS#External("24uD-ShowDialog", prompt)T
PreviousU
Home_
Try it
Unlocking 24U SimpleDialog Plug-In with a registration code
As you keep testing this plug-in, you will notice that a shareware reminder appears periodically on your screen. That's OK for testing but not for regular use or even for the solutions that your customers will be using.
To disable the shareware reminder, assuming you paid for your licence and obtained an unlock code from 24U you must call the 24uD-Register function with the unclock code right after your file opens. The best way B
to achieve this is to create the following script and select it as a startup script in the Document Preferences, or call it at the beginning of your own startup script.
Displaying a dialog - part 4 - fully customizable dialog
Finally, you can mix different kinds of dialog items in a single dialog, and you can specify their default values as well. And you can have up to ten input items in one dialog...
SimpleDialog Plug-In <<
ABAB>>
Displaying a dialog - part 4 - fully customizable dialog
Finally, you can mix different kinds of dialog items in a single dialog, and you can specify their default values as well. And you can have up to ten input items in one dialog...
messageT
PreviousU
Home_
Try itd
field1
field2g
field3
names
typet
text/password
check/radio
result
Showing a dialog 5B
dop.
odp.
SimpleDialog Plug-In <<
ABAB>>
AlDisplaying a dialog - part 5 - general syntax
The syntax you use to define your dialogs is really simple...
The functionL
NextT
PreviousU
Home_
Try itk'External("24uD-ShowDialog", definition)!
SimpleDialog Plug-In <<
ABAB>>
AlDisplaying a dialog - part 5 - general syntax
The syntax you use to define your dialogs is really simple...
There is nothing new about getting information from 24U SimpleDialog. Simply use the techniques you use every day with Status(CurrentMessageChoice) and GetRepetition...
NextT
PreviousU
Home_
Displayk"External("24uD-ButtonPressed", "")
ABCO>>
O-1. Display the dialog and enter values in it:
PT2. Gather the data (note that empty fields are not returned by 24uD-AllTextEntered):
External("24uD-TextEntered", "
V!External("24uD-AllTextEntered", "
Showing a dialog 6B
SimpleDialog Plug-In <<
ABAB>>
Displaying a dialog - part 6 - pop-up menus (new in version 1.0.1)
Starting with version 1.0.1 you can add also pop-up menus to your dialogs. Use the following syntax to define a pop-up menu field:
NextT
PreviousU
Home_
Try it
popup field
G3= "m" &
":" & name &
":" & values [&
":" & default]
Sample value list:
values
M/= value 1 & "
" & value 2 & ... & "
" & value n
Showing a dialog 7B
Shutdown
Show Dialog 1
|("24uD-ShowDialog"
24uD-ShowDialog
Show Dialog 2
|("24uD-ShowDialog"
& "||" &
& "&" &
& "&" &
& "&" &
& "&" &
24uD-ShowDialog
Show Dialog 3
Invalid unlock codeC1
)) = 1
|("24uD-ShowDialog"
"With 24U SimpleDialog Plug-In, your FileMaker Pro solutions can display dialogs with all these cool custom items:" & "|Text fields:Well, not so new but
&p:Passwords:hiddenofcourse&c:Check boxes:1&c:Even with mixed state:2&" & "m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:
it was never so flexible,
and so easy to use.|COOL!&so&is&This&Whoa!")
24uD-ShowDialog
qWith 24U SimpleDialog Plug-In, your F
`ileMaker Pro solutions can display dialogs with all these cool custom items:
h|Text fields:Well, not so new but
&p:Passwords:hiddenofcourse&c:Check boxes:1&c:Even with mixed state:2&
m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:
it was never so flexible,
and so easy to use.|COOL!&so&is&This&Whoa!
|("24uD-ShowDialog"
"With 24U SimpleDialog Plug-In, your FileMaker Pro solutions can display dialogs with all these cool custom items:" & "|Text fields:Well, not so new but...&p:Passwords:hiddenofcourse&c:Check boxes:1&m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:...it was never so flexible,...&:...and so easy to use.|COOL!&so&is&This&Whoa!")
24uD-ShowDialog
qWith 24U SimpleDialog Plug-In, your FileMaker Pro solutions
4can display dialogs with all these cool custom items:
|Text fields:Well, not so new but...&p:Passwords:hiddenofcourse&c:Check boxes:1&m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:...it was never so flexible,...&:...and so easy to use.|COOL!&so&is&This&Whoa!
Show Dialog 4
|("24uD-ShowDialog"
, & "|" &
& ":"
":" &
& "&" &
& ":"
":" &
& "&" &
& ":"
":" &
24uD-ShowDialog
Show Dialog 5
|("24uD-ShowDialog"
24uD-ShowDialog
|("24uD-ShowDialog"
& "|" &
& "&" &
& "&" &
& "&" &
& "&" &
24uD-ShowDialog
Gk<]lc
Startup Wow Dialog
)) = 1
|("24uD-ShowDialog"
"With 24U SimpleDialog Plug-In, your FileMaker Pro solutions can display dialogs with all these cool custom items:" & "|Text fields:Well, not so new but
&p:Passwords:hiddenofcourse&c:Check boxes:1&c:Even with mixed state:2&" & "m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:
it was never so flexible,
and so easy to use.|COOL!&so&is&This&Whoa!")
24uD-ShowDialog
qWith 24U SimpleDialog Plug-In, your F
Show Dialog 6
|("24uD-ShowDialog"
"This is an example of a pop-up menu dialog.|m:Your menu:" &
4 & ":1|OK")
24uD-ShowDialog
8This is an example of a pop-up menu dialog.|m:Your menu:
:1|OK
Getting Full Access
)) = 2
Thank youF
Cancel
To get full access to this file, open it while holding the Shift key on your keyboard, and type "full access" as your password.
`ileMaker Pro solutions can display dialogs with all these cool custom items:
h|Text fields:Well, not so new but
&p:Passwords:hiddenofcourse&c:Check boxes:1&c:Even with mixed state:2&
m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:
it was never so flexible,
and so easy to use.|COOL!&so&is&This&Whoa!
|("24uD-ShowDialog"
"With 24U SimpleDialog Plug-In, your FileMaker Pro solutions can display dialogs with all these cool custom items:" & "|Text fields:Well, not so new but...&p:Passwords:hiddenofcourse&c:Check boxes:1&m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:...it was never so flexible,...&:...and so easy to use.|COOL!&so&is&This&Whoa!")
24uD-ShowDialog
qWith 24U SimpleDialog Plug-In, your FileMaker Pro solutions
4can display dialogs with all these cool custom items:
|Text fields:Well, not so new but...&p:Passwords:hiddenofcourse&c:Check boxes:1&m:Pop-up menus:From version 1.0.1&r:Radio buttons&r:Of course, only one selected&Text fields:...it was never so flexible,...&:...and so easy to use.|COOL!&so&is&This&Whoa!
Show Dialog 7
|("24uD-ShowDialog"
24uD-ShowDialog
is an example of a pop-up menu dialog.|m:Your menu: